﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2024-09-15 16:11
    /// 描 述：实体类
    /// </summary>
    [Table("storeGoodsProduct")]
    public class StoreGoodsProductEntity : BaseEntity
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? goods_id { get; set; }

        public string goods_name { get; set; }
        /// <summary>
        /// 当前商品数量
        /// </summary>
        /// <returns></returns>
        public int? current_cnt { get; set; }
        /// <summary>
        /// 当前占用数据
        /// </summary>
        /// <returns></returns>
        public int? lock_cnt { get; set; }
        /// <summary>
        /// 在途数据
        /// </summary>
        /// <returns></returns>
        public int? in_transit_cnt { get; set; }
        /// <summary>
        /// 商品成本
        /// </summary>
        /// <returns></returns>
        public decimal? average_cost { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modified_time { get; set; }
        /// <summary>
        /// 商品总数
        /// </summary>
        /// <returns></returns>
        public int? in_cnt { get; set; }
        /// <summary>
        /// 图集
        /// </summary>
        /// <returns></returns>
        public string images { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        /// <returns></returns>
        public string model { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        /// <returns></returns>
        public string color { get; set; }
        /// <summary>
        /// 货物名称
        /// </summary>
        /// <returns></returns>
        public string name { get; set; }
        /// <summary>
        /// 颜色id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? colorid { get; set; }
        /// <summary>
        /// 租户id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }
        /// <summary>
        /// 车架号
        /// </summary>
        /// <returns></returns>
        public string VIN { get; set; }
        /// <summary>
        /// 车架号二维码
        /// </summary>
        /// <returns></returns>
        public string VINQRcode { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        /// <returns></returns>
        public int? Isdelete { get; set; }
        /// <summary>
        /// 型号id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? goods_model_id { get; set; }
        /// <summary>
        /// 型号名称
        /// </summary>
        /// <returns></returns>
        public string goods_model_name { get; set; }
        /// <summary>
        /// 商品类型
        /// </summary>
        /// <returns></returns>
        public int? goods_type { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? shop_id { get; set; }
        /// <summary>
        /// 分类id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? category_id { get; set; }
        /// <summary>
        /// 0在库存1已出租
        /// </summary>
        /// <returns></returns>
        public int? status { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        /// <returns></returns>
        public string category_name { get; set; }
        /// <summary>
        /// 门店名称
        /// </summary>
        /// <returns></returns>
        public string shop_name { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? createtime { get; set; }
    }
}
